class DramaInfoResultData {
  // list
  DramaInfoData? info;

  DramaInfoResultData({
    this.info,
  });

  Map<String, dynamic> toJson() {
    return {
      'info': info,
    };
  }

  factory DramaInfoResultData.fromJson(Map<String, dynamic> json) {
    return DramaInfoResultData(
      info: json['info'] == null
          ? null
          : DramaInfoData.fromJson(json['info'] as Map<String, dynamic>),
    );
  }

  @override
  String toString() => "DramaInfoResultData(info: $info)";

  @override
  int get hashCode => info.hashCode;

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
          other is DramaInfoResultData &&
              runtimeType == other.runtimeType &&
              info == other.info;
}

class DramaInfoData {
  int? diId;
  String? name;
  String? cover;
  int? episodes;
  int? freeEpisodes;
  String? tag1;
  String? tag2;
  Null? search;

  DramaInfoData({
    this.diId,
    this.name,
    this.cover,
    this.episodes,
    this.freeEpisodes,
    this.tag1,
    this.tag2,
    this.search,
  });

  Map<String, dynamic> toJson() {
    return {
      'diId': diId,
      'name': name,
      'cover': cover,
      'episodes': episodes,
      'freeEpisodes': freeEpisodes,
      'tag1': tag1,
      'tag2': tag2,
      'search': search,
    };
  }

  factory DramaInfoData.fromJson(Map<String, dynamic> json) {
    return DramaInfoData(
      diId: json['diId'] as int?,
      name: json['name'] as String?,
      cover: json['cover'] as String?,
      episodes: json['episodes'] as int?,
      freeEpisodes: json['freeEpisodes'] as int?,
      tag1: json['tag1'] as String?,
      tag2: json['tag2'] as String?,
      search: json['search'] as Null?,
    );
  }

  @override
  String toString() =>
      "DramaInfoData(diId: $diId,name: $name,cover: $cover,episodes: $episodes,freeEpisodes: $freeEpisodes,tag1: $tag1,tag2: $tag2,search: $search)";

  @override
  int get hashCode => Object.hash(
      diId, name, cover, episodes, freeEpisodes, tag1, tag2, search);

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
          other is DramaInfoData &&
              runtimeType == other.runtimeType &&
              diId == other.diId &&
              name == other.name &&
              cover == other.cover &&
              episodes == other.episodes &&
              freeEpisodes == other.freeEpisodes &&
              tag1 == other.tag1 &&
              tag2 == other.tag2 &&
              search == other.search;
}
